#ifndef PAINTER_H
#define PAINTER_H

#include <QWidget>
#include <QPen>
#include <QMouseEvent>
#include <QPaintEvent>

class Painter : public QWidget
{
    Q_OBJECT
public:
    explicit Painter(QWidget *parent = 0);
    ~Painter();

    void drawCurves(QPainter&);
    void drawGrid(QPainter&);
protected:
    void mousePressEvent(QMouseEvent *e);
    void mouseMoveEvent(QMouseEvent *e);
    void mouseReleaseEvent(QMouseEvent *e);
    void paintEvent(QPaintEvent *);
    
signals:
    
public slots:

private:
    bool m_isDown;
    QPoint m_start;
    QPoint m_stop;
};

#endif // PAINTER_H
